﻿using System.ComponentModel.Composition;
using Microsoft.Services.Clab.UI.Mvvmc;
using Microsoft.Services.Clab.UI.Mvvmc.Composition;

namespace $rootnamespace$
{
    [ControllerExport("$controllerlogicalname$")]
    [PartCreationPolicy(CreationPolicy.NonShared)]
    public partial class $controllername$
    {
        #region ViewModel reference
        public new $viewmodelname$ ViewModel { get { return base.ViewModel as $viewmodelname$;} }
        #endregion

        #region Controller Initialization
        protected override IViewModel CreateViewModel()
        {
            return new $viewmodelname$();
        }
        #endregion
    }
}
